<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of LoginForm
 *
 * @author Admin
 */
class Application_Form_users_loginForm extends Zend_Form {

    public function __construct($options = null) {
        parent::__construct($options);

        $email = new Zend_Form_Element_Text('email');
        $email->addFilter('StripTags')
                ->addValidator('EmailAddress')
                ->addFilter('StringTrim')
                ->setRequired(true)                
                ->setDecorators(array('ViewHelper', 'Errors'))
                ->setAttrib('class', "search-feild");

        $password = new Zend_Form_Element_Password('password');
        $password->addFilter('StripTags')
                ->addFilter('StringTrim')
                ->setRequired(true)
                ->setDecorators(array('ViewHelper', 'Errors'))
                ->setAttrib('class', "search-feild");

        $this->addElements(array($email, $password));
    }

}